package cn.doitedu.vueapi.service.tg;

import cn.doitedu.vueapi.dao.tg.AdPvsMapper;
import cn.doitedu.vueapi.pojo.tg.AdFlowVo;
import cn.doitedu.vueapi.pojo.tg.AdPvs;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AdFlowServiceImpl {

    @Autowired
    AdPvsMapper adPvsMapper;

    public List<AdPvs> getPvs(AdPvs adPvs){
        List<AdPvs> lst = adPvsMapper.selectByAdPvs(adPvs);
        return lst;
    }


    public List<AdFlowVo> getFlowDataByUid(Integer uid){
        AdFlowVo vo = new AdFlowVo();
        vo.setUid(uid);
        List<AdFlowVo> adFlowVos = adPvsMapper.selectMyRpts(vo);

        return adFlowVos;
    }

    public Integer addPvShow(AdPvs adPvs){

        int i = adPvsMapper.insertAdPvs(adPvs);
        return i;
    }




}
